#
# Copyright (C) 2019-2021 Intel Corporation
#
# SPDX-License-Identifier: MIT
#

set(NEO_CORE_HELPERS_TESTS
    ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
    ${CMAKE_CURRENT_SOURCE_DIR}/bindless_heaps_helper_tests.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/blit_commands_helper_tests.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/blit_commands_helper_tests.inl
    ${CMAKE_CURRENT_SOURCE_DIR}/blit_commands_helper_tests_gen12lp.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/built_ins_helper.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
    ${CMAKE_CURRENT_SOURCE_DIR}/debug_manager_state_restore.h
    ${CMAKE_CURRENT_SOURCE_DIR}/default_hw_info.h
    ${CMAKE_CURRENT_SOURCE_DIR}/default_hw_info.inl
    ${CMAKE_CURRENT_SOURCE_DIR}/dispatch_flags_helper.h
    ${CMAKE_CURRENT_SOURCE_DIR}/file_io_tests.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/hw_helper_extended_tests.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/hash_tests.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/kernel_helpers_tests.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/memory_leak_listener.h
    ${CMAKE_CURRENT_SOURCE_DIR}/memory_management.h
    ${CMAKE_CURRENT_SOURCE_DIR}/simd_helper_tests.inl
    ${CMAKE_CURRENT_SOURCE_DIR}/string_tests.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/string_to_hash_tests.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/test_traits.h
    ${CMAKE_CURRENT_SOURCE_DIR}/includes${BRANCH_DIR_SUFFIX}/test_traits_common.h
    ${CMAKE_CURRENT_SOURCE_DIR}/ult_hw_config.h
    ${CMAKE_CURRENT_SOURCE_DIR}/ult_hw_config.inl
    ${CMAKE_CURRENT_SOURCE_DIR}/ult_hw_helper.h
    ${CMAKE_CURRENT_SOURCE_DIR}/variable_backup.h
)

add_subdirectories()

target_sources(${TARGET_NAME} PRIVATE
               ${CMAKE_CURRENT_SOURCE_DIR}/state_base_address_tests.h
               ${CMAKE_CURRENT_SOURCE_DIR}/state_base_address_tests.cpp
               ${CMAKE_CURRENT_SOURCE_DIR}/heap_assigner_shared_tests.cpp
               ${NEO_CORE_HELPERS_TESTS}
)
